﻿<%@ Page Language="C#" ValidateRequest="false" AutoEventWireup="true" MasterPageFile="~/admin/admin_page.master" CodeBehind="label_htmledit.aspx.cs" Inherits="YXShop.Web.admin.templates.label.label_htmledit" %>

<%@ Register assembly="FredCK.FCKeditorV2" namespace="FredCK.FCKeditorV2" tagprefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" href="../style/admin.css" type="text/css" />
    <script src="../../../scripts/prototype.js" type="text/javascript"></script>
    <link rel="stylesheet" href="../../style/validator.css" type="text/css" />
    <script type="text/javascript" src="../../../scripts/validate.js"></script>
    <script src="../../scripts/public.js" type="text/javascript"></script>
        <script type="text/javascript" language="javascript">
function getValue(value)
{
    if(value!="") 
    {
        var oEditor = FCKeditorAPI.GetInstance("ctl00_workspace_txtContent");
        if (oEditor.EditMode==FCK_EDITMODE_WYSIWYG)
        {
           oEditor.InsertHtml(value);
        }
        else
        {
            return false;
        }
    }
}

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pagetitle" runat="server">标签管理
<asp:Button ID="btnOK" runat="server" CssClass="inputbutton" onclick="lbSave_Click" Text="保存" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
    <asp:HyperLink ID="hlBack" runat="server"  CssClass="inputbutton" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返回模板</asp:HyperLink>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="pageinfo" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="workspace" runat="server">
    <asp:Panel ID="pnlMsg" runat="server" Visible="false" CssClass="pnlReturnMessageErr">
        <asp:Literal ID="ltlMsg" runat="server"></asp:Literal>
    </asp:Panel>
     <table  class="form_table_input" border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
             <td class="form_table_input_info">标签名称：</td>
             <td>
                 <asp:DropDownList ID="ddlLabelClass" runat="server">
                 </asp:DropDownList>
                </asp:Panel>
             </td>
         </tr>
	    <tr>
		    <td class="form_table_input_info">标签内容：
            </td>
		    <td><span id="adress"></span>
		        <FCKeditorV2:FCKeditor ID="txtContent" runat="server" Height="450px" BasePath="~/controls/fckeditor/"></FCKeditorV2:FCKeditor>
            </td>
	    </tr>
	    <tr>
		    <td class="form_table_input_info">标签描述：
            </td>
		    <td>
                <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" Width="600px"></asp:TextBox>
                <div class="msgNormal">描述限制在50个字符以内</div>
            </td>
	    </tr>
    </table>
</asp:Content>
<asp:Content ID="ContBottom" runat="server" ContentPlaceHolderID="pagebottom">
 <asp:Button ID="btnSave" runat="server" CssClass="inputbutton" onclick="lbSave_Click" Text="保存" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'"/>
    <asp:HyperLink ID="hfBottomBack" runat="server"  CssClass="inputbutton" Width="65px" Height="24px" onMouseOver="javascript:document.getElementById(this.id).className='inputbutton_a'" onMouseOut="javascript:document.getElementById(this.id).className='inputbutton'">返回模板</asp:HyperLink>
</asp:Content>